﻿@using MC.RideEvent.Mvc.Models.Repository
@model MC.RideEvent.Mvc.Models.ViewModel.MemberViewModel

@{
    ViewBag.Title = "Index";
}

<h2>Inscription</h2> </br>

<p>
    Nous rejoindre en quelques clics et profiter des meilleurs soirées Parisiennes avec VOTRE Capitaine Sam!
</p>
</br></br>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SignUpModel</legend>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Birthday)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Birthday)
            @Html.ValidationMessageFor(model => model.Birthday)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cp)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cp)
            @Html.ValidationMessageFor(model => model.Cp)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sexe)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Sexe, SelectListRepository.ListSexe())
            @Html.ValidationMessageFor(model => model.Sexe)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DriveLicenceDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DriveLicenceDate)
            @Html.ValidationMessageFor(model => model.DriveLicenceDate)
        </div>

        <p>
            <em>* Informations obligatoires</em>
        </p>

        <p>
            <input type="submit" value="S'inscrire" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
